<template>
    <div class="drawerContainer">
        <el-form :model="propJson" label-width="auto" style="width: 100%">
            <el-form-item label="弹出框绑定参数">
                <el-select v-model="propJson.dialogVisibleParam" placeholder="变量名称" style="width: 100%">
                    <el-option v-for="info in commonParam" :label="info.variableName" :value="info.variableName" />
                </el-select>
            </el-form-item>

            <el-form-item label="弹出框标题">
                <el-input v-model="propJson.title" style="width: 100%"/>
            </el-form-item>

            <el-form-item label="标题是否居中">
                <el-radio-group v-model="propJson.titleIsCenter">
                    <el-radio :label="true">是</el-radio>
                    <el-radio :label="false">否</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item label="弹出框宽度">
                <el-input v-model="propJson.width" style="width: 100%"/>
            </el-form-item>

            <el-form-item label="弹框位置是否居中">
                <el-radio-group v-model="propJson.dialogIsCenter">
                    <el-radio :label="true">是</el-radio>
                    <el-radio :label="false">否</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item label="弹框是否可拖拽">
                <el-radio-group v-model="propJson.isDraggable">
                    <el-radio :label="true">是</el-radio>
                    <el-radio :label="false">否</el-radio>
                </el-radio-group>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
export default {
    name: "DialogComponentDrawer",
    props: ['commonParam'],
    computed: {
        propJson() {
            return this.$store.state.lowCodeDrawerJsonInfo;
        }
    },
}
</script>

<style scoped>

</style>